package com.xbongbong.pay.platform.wechatpay.pojo.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Size;

/**
 * 小程序统一下单返回
 * @author 魏荣杰
 * @date 2021/2/2 09:50
 * @since
 * @version
 */
@Setter
@Getter
public class WeChatMinaUnifiedOrderResponse extends WeChatBaseResponse{
    private static final long serialVersionUID = 9044005233250376921L;

    /**
     * 预支付交易会话标识。用于后续接口调用中使用，该值有效期为2小时
     * 示例值：wx201410272009395522657a690389285100
     */
    @Size(min = 1, max = 64)
    @JSONField(name = "prepay_id")
    private String prepayId;
}
